#include"ThreadPool.hpp"
#include"Task.hpp"



int main()
{
    ThreadPool<AddTask> tp(5);
    while(1)
    {
        int a=rand()%100;
        int b=rand()%100;
        AddTask t(a,b);
        //..生产过程
        tp.push(t);
    }
    sleep(1000);
    return 0;
}